<?php
include_once "func.php";
ini_set('display_errors', '0');
error_reporting(0);//禁用错误报告 

// data:{ englishname:englishname,chinesename:chinesename,
// nationality:nationality,contactnumber:contactnumber,email:email,place:place},

$userid = $_POST['userid'];
$smscode = $_POST['smscode']; 
$password = md5($_POST['password']); 

if($smscode==''){
	$return = array(
	    'result' => 3
	);
	ajax_return($return);
}

//check smscode


//update  
$sql = "update coach set password='$password' where id = '$userid'";
$res = $db->query($sql);
 
if($res){
 	$return = array(
	    'result' => 1
	);
	ajax_return($return);
}

 
  
?>